package cn.cdliux.spring.bean;

import java.util.HashMap;
import java.util.Map;

public class UserDao {

    private static Map<String, String> hashMap = new HashMap<>(8);

    static {
        hashMap.put("10001", "Lewis1");
        hashMap.put("10002", "Lewis2");
        hashMap.put("10003", "Lewis3");
    }

    public String queryUserName(String id) {
        return hashMap.get(id);
    }
}
